# Tanım: Cairo-Dock için eklentiler
# URL: http://glx-dock.org
# Paketçi: yasarciv67
# Gerekler: cairo-dock alsa-lib cmake dbus-sharp-glib fftw gnome-menus gtk-sharp-3 gvfs libetpan libexif libical pulseaudio libxklavier lm_sensors python python3 ruby upower vala vte3 zeitgeist wireless_tools
# Grup: masaüstü

isim=cairo-dock-plug-ins
surum=3.4.1
devir=1   
kaynak=(https://github.com/Cairo-Dock/cairo-dock-plug-ins/archive/${pkgver}.tar.gz::$isim-$surum.tar.gz
        cairo-dock-plug-ins-mono.patch
        cairo-dock-plugins-3.4.1-time_h-confict.patch)

derle() {
  cd $isim-$surum

  patch -Np1 -i ../cairo-dock-plug-ins-mono.patch
  patch -Np1 -i ../cairo-dock-plugins-3.4.1-time_h-confict.patch
  sed 's/gmcs/mcs/' -i CMakeLists.txt

  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
  cd $isim-$surum/build
  cmake .. \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_INSTALL_PREFIX='/usr'
  make
  make DESTDIR=$PKG install
  mv $PKG/usr/lib/{cli,mono}
}
